package com.jzo2o.customer.controller.agency;

import com.jzo2o.customer.model.dto.request.AgencyCertificationAuditAddReqDTO;
import com.jzo2o.customer.model.dto.request.AgencyCertificationAuditPageQueryReqDTO;
import com.jzo2o.customer.model.dto.request.WorkerCertificationAuditAddReqDTO;
import com.jzo2o.customer.model.dto.response.RejectReasonResDTO;
import com.jzo2o.customer.service.IAgencyCertificationService;
import com.jzo2o.customer.service.IWorkerCertificationService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;


/**
 * @author 86188
 */

@RestController("agencyCertificationController")
@RequestMapping("/agency/agency-certification-audit")
@Api(tags = "服务端 - 个人实名认证相关接口")
@Slf4j
public class CertificationController {

    @Resource
    private IAgencyCertificationService agencyCertificationService;
    @PostMapping
    @ApiOperation("个人信息实名认证")
    public void addBankAccountInfo(@RequestBody AgencyCertificationAuditAddReqDTO dto) {
        agencyCertificationService.addAgencyCertification(dto);
    }

    @GetMapping("/rejectReason")
    @ApiOperation("个人认证通过原因")
    public RejectReasonResDTO getRejectReason() {
        return agencyCertificationService.getRejectReason();
    }

}
